<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      layout:decorate="~{layout/layout-adminlte}">
<head>
    <title>小程序设置列表</title>
</head>
<body>
    <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-compact nav-child-indent" data-widget="treeview" role="menu" data-accordion="false"
    th:include="fragments/common-adminlte::menu(${'/admin/miniApp/wx-list-news'})" layout:fragment="menu"></ul>
    <div layout:fragment="content" xmlns:th="http://www.w3.org/1999/html">
        <table class="table table-bordered table-striped">
            <thead>
            <tr>
                <th>内容标题</th>
                <th>更新时间</th>
                <th>操作 <a href="#" th:href="@{'/admin/miniApp/edit/{mediaId}'(id=0)}">新建</a></th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="item:${items}">

                <td class="text-center">
                    <div th:each="subitem:${item.content.newsItem}" th:text="${subitem.title}">1</div>
                </td>
                <td class="text-center" th:utext="${#dates.format(item.updateTime,'yyyy-MM-dd HH:mm:ss')}">1</td>
                <td><a href="#"  th:href="@{'/admin/miniApp/edit/{mediaId}'(id=${item.mediaId})}" >编辑</a>&nbsp;<a href="" th:href="@{'/admin/miniApp/wx-delete-news/{appId}/{mediaId}'(appId=${appId},mediaId=${item.mediaId})}" class="btn-link ajaxask" >删除</a> </td>
            </tr>
            </tbody>
        </table>
        <div class="row">
            <div class="col-lg-6 d-none d-md-inline">
                <div th:text="|展现${pageIndex}页 ,共计${totalPages}页,合计${total}条|"></div>
            </div>
            <div class="col-sm-12 col-xs-12 text-right">
                <ul class="pagination" th:replace="fragments/common-adminlte::pager(${pageIndex},${totalPages},|/admin/miniApp/wx-list-news/${appId}/{page}|)"/>
            </div>
        </div>
    </div>
</body>
</html>